package edu.spec.dengyan.week02.class03;
import java.util.Scanner;

public class Guess {
    public static void main(String[] args){
    A a= new A();

 Scanner input=new Scanner(System.in);

 while(1==1){

     System.out.println("请猜测数字");
     int i=input.nextInt();

        if(i<a.v){

              System.out.println("太小了");

                continue;
 }
            else if(i>a.v){
             System.out.println("太大了");continue;}
else{System.out.println("恭喜你猜对了"); break;}
        }
                }
                }

class A{

int v=100;

}
